package org.cuckoos.android.test;

import junit.framework.Assert;

import org.cuckoos.android.DefaultSocketService;
import org.cuckoos.android.SocketService;
import org.cuckoos.android.ui.AppActivity;

import android.test.AndroidTestCase;

public class DefaultSocketServiceTester extends AndroidTestCase {
	AppActivity mock = new AppActivity();
	public void testStart() {
		SocketService hs = new DefaultSocketService();
		hs.start(mock);
		
		Assert.assertNotNull(hs.getSocket());
		
		hs.stop();
//		Assert.assertEquals(GlobalConstant.DEFAULT_PORT, hs.getSocket().getPort());
	}
	
	public void testStop() {
		SocketService hs = new DefaultSocketService();
		hs.start(mock);
		hs.stop();
		
	}

	
}
